﻿using Inovout.SoftwareStudio.Models;
using Inovout.Gui.Wpf.ViewModels;

namespace Inovout.SoftwareStudio.Gui.Wpf.ViewModels
{
    public class ProductViewModel : ModelViewModel<Product>
    {
        public string Name
        {
            get { return Model.Name; }
            set
            {
                if (Model.Name != value)
                {
                    Model.Name = value;
                    OnPropertyChanged(() => Name);
                }
            }
        }

        public string Summary
        {
            get { return Model.Summary; }
            set
            {
                if (Model.Summary != value)
                {
                    Model.Summary = value;
                    OnPropertyChanged(() => Summary);
                }
            }
        }

    }
}
